public class Foo {
  int i;
  public Foo(int i){
    this.i = i;
  }
  @Override
  protected void finalize() throws Throwable {		
    System.out.println(i);
    super.finalize();
  }
}
